package com.example.forum.services;

import com.example.forum.entity.User;
import com.example.forum.exception.CustomException;
import com.example.forum.vo.ArticleReplyVO;

import java.util.List;

public interface IArticleReplyService {

    /**
     * 创建回复
     *
     * @param id
     * @param content
     * @param user
     */
    void create(Long id, String content, User user) throws CustomException;

    /**
     * 获取回复列表
     *
     * @param articleId
     * @return
     */
    List<ArticleReplyVO> getReplyList(Long articleId) throws CustomException;
}
